
#ifndef __USER_DEBUG_H
#define __USER_DEBUG_H

#include "uart.h"

#include "user_config.h"

#ifdef USE_UART_DEBUG
#define DEBUG_MSG(...) 	printf(__VA_ARGS__)
#else
#define DEBUG_MSG(...) 
#endif

extern UART_TypeDef* Debug_Uart_Port;

void uart_init(UART_TypeDef* uartx,uint32_t  Baudrate);
void _uart_send_byte(uint16_t Data);
#endif

